var user = functions.ParseJSON(functions.GetItemInLocalStorage('user'));
var local = 'http://192.168.0.10:61662/Flingz.svc/';
var beta = 'http://wsflingz.azurewebsites.net/Flingz.svc/';
var serv = local;
var req;
var salt = 't8!g312?vspm';
/*var request = {
    "Sign":"test",
    "User":1
};*/


var module = angular.module('Flingz', ['ngRoute', 'appControllers']).
    config(['$routeProvider', function ($routeProvider, $routeParams) {
        $routeProvider
            .when('/', {
                templateUrl: functions.GetMenu(user),
                controller: 'HomeController'
            })
            .when('/camera', {
                controller: 'CameraController',
                templateUrl: 'views/camera.html',
                animation: 'slide'
            })
            .when('/circle', {
                controller: 'CircleController',
                templateUrl: 'views/circle.html',
                animation: 'slide'
            })
            .when('/user/:id', {
                controller: 'UserController',
                templateUrl: 'views/user.html',
                animation: 'slide'
            })
            .when('/followed', {
                controller: 'UserController',
                templateUrl: 'views/follow.html',
                animation: 'slide'
            })
            .when('/follower', {
                controller: 'UserController',
                templateUrl: 'views/follow.html',
                animation: 'slide'
            })
            .otherwise({ redirectTo: '/' });
    }], function ($sceDelegateProvider) {
        $sceDelegateProvider.resourceUrlWhitelist(['.*']);
    });
